//
//  SBNaviSegment.h
//  Pods
//
//  Created by 刘 真 on 7/26/16.
//
//

#import <UIKit/UIKit.h>

@class SBPageController;

@interface SBNaviSegment : UIControl

@property (nonatomic, strong) UIView *indicator;

@property (nonatomic, strong) NSArray *items;

@property (nonatomic) NSInteger selectedIndex;

@property (nonatomic, weak) SBPageController *pageController;

@property (nonatomic) CGFloat indicatorLeftMargin;
@property (nonatomic) CGFloat indicatorRightMargin;
@property (nonatomic) CGFloat indicatorPadding;

@property (nonatomic) BOOL hideIndicator;

/**
 *  移动indicator
 *
 *  @param postion position值为-1~1之间，-1代表左移一个，1代表右移一个
 */
- (void)moveIndicator:(CGFloat)postion;

/**
 *  为指定的项目，设置小红点
 *
 *  @param index 指定项目的index
 */
- (void)setDotForIndex:(NSInteger)index;

/**
 *  清除指定项目的小红点
 *
 *  @param index 指定项目的index
 */
- (void)cleanDotForIndex:(NSInteger)index;

@end
